/*
 * @Description:
 * @Author: ldx
 * @Date: 2022-04-06 19:34:55
 * @LastEditors: ldx
 * @LastEditTime: 2023-12-13 14:48:34
 */
import React from 'react'

import Layout from '@/layout'
export const routes = [
  {
    path: '/',
    key: 'home',
    component: React.lazy(() => import('@/pages/home')),
    icon: '',
    title: '首页',
    hideInMenu: false,
    auth: ['home']
  }
]
export default [
  // {
  //   path: '/*',
  //   key: '/*',
  //   component: Layout,
  //   routes: routes
  // },
  {
    path: '/*',
    key: '/*',
    component: React.lazy(() => import('@/pages/home')),
    routes: []
  }
]
export interface RoutesType {
  path: string
  redirect?: string
  key: string
  component?: any
  hideInMenu?: boolean
  icon?: string
  title?: string
  auth?: string[]
  routes?: RoutesType[]
}
